<template>
  <div>
    <h3>{{ num }}</h3>
    <button @click="num++">修改num</button>
    <h3>{{ num2 }}</h3>
    <button @click="num2++">修改num2</button>
  </div>
</template>
<script>
export default {
  data () {
    return {
      num: 0,
      num2: 0
    }
  }
}
</script>
<style></style>
